import { createStore } from 'vuex'

const USER = "USER";

export default createStore({
  state: {
    loginUser : SessionStorage.get(USER) || {}
  },
  getters: {
  },
  mutations: {
    setLoginUser(state, user){
       state.loginUser = user;
       SessionStorage.set(USER, user);
    }
  },
  actions: {
  },
  modules: {
  }
})
